package handin05;

public class MagicSquareTester {

	public static void main(String[] args) {
		MagicSquare magicSquare = new MagicSquare();
		
		magicSquare.add(1);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());	
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(2);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());	
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(3);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());	
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(4);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());	
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(5);
		magicSquare.add(6);
		magicSquare.add(7);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());	
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(8);
		magicSquare.add(9);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());		
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		magicSquare.add(11);
		magicSquare.add(9);
		magicSquare.add(11);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());		
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());
		System.out.println();
		
		System.out.println("magicSquare.clearSquare:");
		magicSquare.clearSquare();		
		System.out.println(magicSquare.toString());	
		System.out.println();
		
		magicSquare.add(8);
		magicSquare.add(1);
		magicSquare.add(6);
		magicSquare.add(3);
		magicSquare.add(5);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println();
		
		magicSquare.add(7);
		magicSquare.add(4);
		magicSquare.add(9);
		magicSquare.add(2);
		System.out.println("magicSquare:");
		System.out.println(magicSquare.toString());		
		System.out.println("magicSquare.isSquare: " + magicSquare.isSquare());
		System.out.println("magicSquare.isCorrectNumberSequence: " + magicSquare.isCorrectNumberSequence());
		System.out.println("magicSquare.isMagic: " + magicSquare.isMagic());

	}

}
